<%-- 
    Document   : DeferStorage
    Created on : Jun 29, 2012, 12:20:10 AM
    Author     : praneeth
--%>

<%@page import="java.sql.*" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>update_accstore JSP Page</title>
    </head>
    <body>    <h3> </h3>
         
        
        <% 
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            
           String date=request.getParameter("date");
            
             //out.println("USERID:"+uid);
             //out.println("|| acc   updated");
          String q1=" update Refill SET date='"+date+"'";
           
           System.out.println(q1);
             
      
      Connection connection=DriverManager.getConnection("jdbc:odbc:egasdsn");
      Statement stmt =connection.createStatement();
        
        int rs=stmt.executeUpdate(q1);
          
            if((rs==1)){
            
                 out.println("\nThankyou..! ");
                out.println("Refilled");
      
                     }
           %>
    </body>
</html>
